package com.hexiang.rocketmq.service.impl;

import com.hexiang.rocketmq.message.DemoMessage;
import com.hexiang.rocketmq.service.DemoService;
import org.springframework.stereotype.Service;

@Service
public class DemoServiceImpl implements DemoService {

    @Override
    public boolean saveDemo(DemoMessage demoMessage) {
        //模拟数据库保存成功
        return true;
    }

    @Override
    public boolean checkDemoMessageExist(DemoMessage demoMessage) {
        //模拟数据库已存在该数据
        return true;
    }
}